﻿using System;
using System.Configuration;
using System.Data;
using MySql.Data.MySqlClient;

namespace HelloApp2.Controllers
{
    public class DapperService
    {
        public static IDbConnection MySqlConnection()
        {
            const string con = "server=localhost;database=vueDemo;uid=root;pwd=xk123123;charset='utf8';SslMode=None";
            IDbConnection connection = new MySqlConnection(con);
  
            connection.Open();
            return connection;
        }

    }
}

